﻿
namespace Cos.Module.CMS.NHibernate.Test
{
    using System.Collections.Generic;

    using Cos.Core.NHibernate;
    using Cos.Core.NHibernate.Tests;

    using NUnit.Framework;

    [TestFixture]
    public class NavDataModelFixture : ModuleFixtureBase
    {
         [Test]
        public void CanMapNavDataModel()
         {
             new PersistenceSpecification<NavDataModel>(Session)
                 .CheckProperty(x => x.InheritPermissions, false)
                 .CheckProperty(x => x.NavOrder, 1)
                 .CheckProperty(x => x.ParentId, 0)
                 .CheckProperty(x => x.TemplateId, 1)
                 .VerifyTheMappings();
         }
    }
}
